package com.zmc.coupon.infrastructure.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zmc.common.utils.PageUtils;
import com.zmc.coupon.infrastructure.bean.query.CouponHistoryQuery;
import com.zmc.coupon.infrastructure.bean.vo.CouponReceiveVo;
import com.zmc.coupon.infrastructure.entity.CouponHistoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 优惠券领取历史记录
 *
 * @author zmc
 * @email 
 * @date 2024-10-09 14:59:36
 */
public interface CouponHistoryService extends IService<CouponHistoryEntity> {

    PageUtils queryPage(CouponHistoryQuery query);

    List<CouponHistoryEntity> queryList(CouponHistoryQuery query);

    List<CouponHistoryEntity> getUserHistoryList(List<Long> couponIds);

    List<CouponHistoryEntity> getCouponHistory(CouponReceiveVo vo);

    void createCouponHistory(CouponReceiveVo vo);

    List<CouponHistoryEntity> listByOrderSn(String orderSn);

    void updateByOrderSn(String orderSn);

    void updateExpiredByCouponId(Long couponId);

}

